package com.zero.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * (Order)表实体类
 *
 * @author makejava
 * @since 2022-04-24 18:02:18
 */
@SuppressWarnings("serial")
@TableName("t_order")
public class Order {

    @TableId(value = "order_id", type = IdType.ASSIGN_ID)
    private String orderId;

    @TableField("goods_id")
    private Integer goodsId;

    @TableField("count")
    private Integer count;

    @TableField("price")
    private Double price;

    @TableField("create_time")
    private Date createTime;

    @TableField("modify_time")
    private Date modifyTime;

    public Order() {
    }

    public Order(String orderId, Integer goodsId, Integer count, Double price) {
        this.orderId = orderId;
        this.goodsId = goodsId;
        this.count = count;
        this.price = price;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    public String toString() {
        return "Order{" +
            "orderId='" + orderId + '\'' +
            ", goodsId=" + goodsId +
            ", count=" + count +
            ", price=" + price +
            ", createTime=" + createTime +
            ", modifyTime=" + modifyTime +
            '}';
    }
}

